<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: elftosb::EncoreBootImage::FillCommand Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classelftosb_1_1_encore_boot_image_1_1_fill_command.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classelftosb_1_1_encore_boot_image_1_1_fill_command-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">elftosb::EncoreBootImage::FillCommand Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Pattern fill bootloader command.  
 <a href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_encore_boot_image_8h_source.html">EncoreBootImage.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for elftosb::EncoreBootImage::FillCommand:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classelftosb_1_1_encore_boot_image_1_1_fill_command__inherit__graph.svg" width="182" height="231"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for elftosb::EncoreBootImage::FillCommand:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classelftosb_1_1_encore_boot_image_1_1_fill_command__coll__graph.svg" width="182" height="231"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6036782b11e48aa555e3b3143e567aa0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a6036782b11e48aa555e3b3143e567aa0">FillCommand</a> ()</td></tr>
<tr class="memdesc:a6036782b11e48aa555e3b3143e567aa0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a6036782b11e48aa555e3b3143e567aa0">More...</a><br /></td></tr>
<tr class="separator:a6036782b11e48aa555e3b3143e567aa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb1c193d7adfa181ff50ed6c81731931"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#abb1c193d7adfa181ff50ed6c81731931">initFromData</a> (const cipher_block_t *blocks, unsigned count, unsigned *consumed)</td></tr>
<tr class="memdesc:abb1c193d7adfa181ff50ed6c81731931"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the command contents from raw data.  <a href="#abb1c193d7adfa181ff50ed6c81731931">More...</a><br /></td></tr>
<tr class="separator:abb1c193d7adfa181ff50ed6c81731931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8d98578f3fa18fb67a3a3493e033eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a8d98578f3fa18fb67a3a3493e033eb"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a4a8d98578f3fa18fb67a3a3493e033eb">debugPrint</a> () const </td></tr>
<tr class="memdesc:a4a8d98578f3fa18fb67a3a3493e033eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print out a string representation of the object. <br /></td></tr>
<tr class="separator:a4a8d98578f3fa18fb67a3a3493e033eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Header</div></td></tr>
<tr class="memitem:a7e064fa580433fd86c62d5906e039043"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e064fa580433fd86c62d5906e039043"></a>
virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a7e064fa580433fd86c62d5906e039043">getTag</a> () const </td></tr>
<tr class="memdesc:a7e064fa580433fd86c62d5906e039043"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the tag value for this command. <br /></td></tr>
<tr class="separator:a7e064fa580433fd86c62d5906e039043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af28324b2368c4dcd180a13454fb064bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af28324b2368c4dcd180a13454fb064bc"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#af28324b2368c4dcd180a13454fb064bc">fillCommandHeader</a> (<a class="el" href="classelftosb_1_1_encore_boot_image.html#structelftosb_1_1_encore_boot_image_1_1boot__command__t">boot_command_t</a> &amp;header)</td></tr>
<tr class="memdesc:af28324b2368c4dcd180a13454fb064bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs the header for this boot command. <br /></td></tr>
<tr class="separator:af28324b2368c4dcd180a13454fb064bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Address range</div></td></tr>
<tr class="memitem:a3bd9d3133fced81f9bf4a2a9c6043399"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3bd9d3133fced81f9bf4a2a9c6043399"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAddress</b> (uint32_t address)</td></tr>
<tr class="separator:a3bd9d3133fced81f9bf4a2a9c6043399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f1a79650ef5730978385b94ea52f26f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6f1a79650ef5730978385b94ea52f26f"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>getAddress</b> () const </td></tr>
<tr class="separator:a6f1a79650ef5730978385b94ea52f26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31e0b19895be67edaa9176f14268088d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31e0b19895be67edaa9176f14268088d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFillCount</b> (uint32_t count)</td></tr>
<tr class="separator:a31e0b19895be67edaa9176f14268088d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dad0aa9a27f4874bf81c782b7e4d862"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3dad0aa9a27f4874bf81c782b7e4d862"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>getFillCount</b> () const </td></tr>
<tr class="separator:a3dad0aa9a27f4874bf81c782b7e4d862"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Pattern</div></td></tr>
<tr class="memitem:a12d27f7b6542d3c1cc4e110eb6da8c71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a12d27f7b6542d3c1cc4e110eb6da8c71">setPattern</a> (uint8_t pattern)</td></tr>
<tr class="separator:a12d27f7b6542d3c1cc4e110eb6da8c71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ac8910472a5d9aaf463f1f7492f041"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a25ac8910472a5d9aaf463f1f7492f041">setPattern</a> (uint16_t pattern)</td></tr>
<tr class="separator:a25ac8910472a5d9aaf463f1f7492f041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaae621b80debf424b4f0b16f7b79096b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaae621b80debf424b4f0b16f7b79096b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPattern</b> (uint32_t pattern)</td></tr>
<tr class="separator:aaae621b80debf424b4f0b16f7b79096b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a030e8351eb19686d45ec943a0654c065"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a030e8351eb19686d45ec943a0654c065"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>getPattern</b> () const </td></tr>
<tr class="separator:a030e8351eb19686d45ec943a0654c065"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html">elftosb::EncoreBootImage::BootCommand</a></td></tr>
<tr class="memitem:ac20b874eb88952931204d1ea0f98267f inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac20b874eb88952931204d1ea0f98267f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#ac20b874eb88952931204d1ea0f98267f">BootCommand</a> ()</td></tr>
<tr class="memdesc:ac20b874eb88952931204d1ea0f98267f inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:ac20b874eb88952931204d1ea0f98267f inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7d5a2f3eb06e9e5506be3d10b66e2c6 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7d5a2f3eb06e9e5506be3d10b66e2c6"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#ae7d5a2f3eb06e9e5506be3d10b66e2c6">~BootCommand</a> ()</td></tr>
<tr class="memdesc:ae7d5a2f3eb06e9e5506be3d10b66e2c6 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ae7d5a2f3eb06e9e5506be3d10b66e2c6 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a828dda19e5c8e1a0628a39bf90b39fda inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a828dda19e5c8e1a0628a39bf90b39fda">calculateChecksum</a> (const <a class="el" href="classelftosb_1_1_encore_boot_image.html#structelftosb_1_1_encore_boot_image_1_1boot__command__t">boot_command_t</a> &amp;header)</td></tr>
<tr class="memdesc:a828dda19e5c8e1a0628a39bf90b39fda inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the checksum for the given command header.  <a href="#a828dda19e5c8e1a0628a39bf90b39fda">More...</a><br /></td></tr>
<tr class="separator:a828dda19e5c8e1a0628a39bf90b39fda inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8e41c77785db7a486b8102360bea785 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#ac8e41c77785db7a486b8102360bea785">getBlockCount</a> () const </td></tr>
<tr class="memdesc:ac8e41c77785db7a486b8102360bea785 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the total number of cipher blocks.  <a href="#ac8e41c77785db7a486b8102360bea785">More...</a><br /></td></tr>
<tr class="separator:ac8e41c77785db7a486b8102360bea785 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd1b5489a1a8899b707a9b366d0971c8 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#acd1b5489a1a8899b707a9b366d0971c8">getBlocks</a> (unsigned offset, unsigned maxCount, cipher_block_t *data)</td></tr>
<tr class="memdesc:acd1b5489a1a8899b707a9b366d0971c8 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the contents of up to <em>maxCount</em> cipher blocks.  <a href="#acd1b5489a1a8899b707a9b366d0971c8">More...</a><br /></td></tr>
<tr class="separator:acd1b5489a1a8899b707a9b366d0971c8 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63457e77b2372a479df45aa9a1c205b0 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a63457e77b2372a479df45aa9a1c205b0">getDataBlockCount</a> () const </td></tr>
<tr class="memdesc:a63457e77b2372a479df45aa9a1c205b0 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of data cipher blocks that follow this command.  <a href="#a63457e77b2372a479df45aa9a1c205b0">More...</a><br /></td></tr>
<tr class="separator:a63457e77b2372a479df45aa9a1c205b0 inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b3519a49537325f27f3ec556ed176d inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a46b3519a49537325f27f3ec556ed176d">getDataBlocks</a> (unsigned offset, unsigned maxCount, cipher_block_t *data)</td></tr>
<tr class="memdesc:a46b3519a49537325f27f3ec556ed176d inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the contents of up to <em>maxCount</em> data blocks.  <a href="#a46b3519a49537325f27f3ec556ed176d">More...</a><br /></td></tr>
<tr class="separator:a46b3519a49537325f27f3ec556ed176d inherit pub_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Cipher blocks</div></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ac1705dd65bd2028d65803472b5964f18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1705dd65bd2028d65803472b5964f18"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#ac1705dd65bd2028d65803472b5964f18">m_address</a></td></tr>
<tr class="memdesc:ac1705dd65bd2028d65803472b5964f18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fill start address. <br /></td></tr>
<tr class="separator:ac1705dd65bd2028d65803472b5964f18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73501ba71ef3e30182242d0534910a43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73501ba71ef3e30182242d0534910a43"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#a73501ba71ef3e30182242d0534910a43">m_count</a></td></tr>
<tr class="memdesc:a73501ba71ef3e30182242d0534910a43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bytes to fill. <br /></td></tr>
<tr class="separator:a73501ba71ef3e30182242d0534910a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabc131dad707cd018e30d8a2c0d127c5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabc131dad707cd018e30d8a2c0d127c5"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html#aabc131dad707cd018e30d8a2c0d127c5">m_pattern</a></td></tr>
<tr class="memdesc:aabc131dad707cd018e30d8a2c0d127c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fill pattern. <br /></td></tr>
<tr class="separator:aabc131dad707cd018e30d8a2c0d127c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html">elftosb::EncoreBootImage::BootCommand</a></td></tr>
<tr class="memitem:a5ffcb1578efd1531c594b64faf2163f1 inherit pub_static_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html">BootCommand</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a5ffcb1578efd1531c594b64faf2163f1">createFromData</a> (const cipher_block_t *blocks, unsigned count, unsigned *consumed)</td></tr>
<tr class="memdesc:a5ffcb1578efd1531c594b64faf2163f1 inherit pub_static_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the correct subclass of <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html" title="Abstract base class for all bootloader commands. ">BootCommand</a> for the given raw data.  <a href="#a5ffcb1578efd1531c594b64faf2163f1">More...</a><br /></td></tr>
<tr class="separator:a5ffcb1578efd1531c594b64faf2163f1 inherit pub_static_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_types_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td colspan="2" onclick="javascript:toggleInherit('pro_types_classelftosb_1_1_encore_boot_image_1_1_boot_command')"><img src="closed.png" alt="-"/>&#160;Protected Types inherited from <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html">elftosb::EncoreBootImage::BootCommand</a></td></tr>
<tr class="memitem:a860e4a7f504f14254a28002418d78e2c inherit pro_types_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a860e4a7f504f14254a28002418d78e2c"></a>enum &#160;</td><td class="memItemRight" valign="bottom">{ <br />
&#160;&#160;<b>CMD_TAG_FIELD</b> = 1, 
<br />
&#160;&#160;<b>CMD_FLAGS_FIELD</b> = 2, 
<br />
&#160;&#160;<b>CMD_ADDRESS_FIELD</b> = 4, 
<br />
&#160;&#160;<b>CMD_COUNT_FIELD</b> = 8, 
<br />
&#160;&#160;<b>CMD_DATA_FIELD</b> = 16
<br />
 }<tr class="memdesc:a860e4a7f504f14254a28002418d78e2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The flag bit values for the <em>whichFields</em> parameter of <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a5ed39355be6653d7665cb91ef24361e5">validateHeader()</a>. <br /></td></tr>
</td></tr>
<tr class="separator:a860e4a7f504f14254a28002418d78e2c inherit pro_types_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html">elftosb::EncoreBootImage::BootCommand</a></td></tr>
<tr class="memitem:a5ed39355be6653d7665cb91ef24361e5 inherit pro_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#a5ed39355be6653d7665cb91ef24361e5">validateHeader</a> (const <a class="el" href="classelftosb_1_1_encore_boot_image.html#structelftosb_1_1_encore_boot_image_1_1boot__command__t">boot_command_t</a> *modelHeader, const <a class="el" href="classelftosb_1_1_encore_boot_image.html#structelftosb_1_1_encore_boot_image_1_1boot__command__t">boot_command_t</a> *testHeader, unsigned whichFields)</td></tr>
<tr class="separator:a5ed39355be6653d7665cb91ef24361e5 inherit pro_methods_classelftosb_1_1_encore_boot_image_1_1_boot_command"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Pattern fill bootloader command. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6036782b11e48aa555e3b3143e567aa0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">EncoreBootImage::FillCommand::FillCommand </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>
<p>The pattern, address, and count are all initialized to zero, and the pattern size is set to a word. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="abb1c193d7adfa181ff50ed6c81731931"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void EncoreBootImage::FillCommand::initFromData </td>
          <td>(</td>
          <td class="paramtype">const cipher_block_t *&#160;</td>
          <td class="paramname"><em>blocks</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned *&#160;</td>
          <td class="paramname"><em>consumed</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read the command contents from raw data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">blocks</td><td>Pointer to the raw data blocks. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">count</td><td>Number of blocks pointed to by <em>blocks</em>. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">consumed</td><td>On exit, this points to the number of cipher blocks that were occupied by the command. Should be at least 1 for every command. This must not be NULL on entry!</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::runtime_error</td><td>Thrown if header fields are invalid. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classelftosb_1_1_encore_boot_image_1_1_boot_command.html#ac7e73ff007dd5a179952b089930e684a">elftosb::EncoreBootImage::BootCommand</a>.</p>

</div>
</div>
<a class="anchor" id="a12d27f7b6542d3c1cc4e110eb6da8c71"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EncoreBootImage::FillCommand::setPattern </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pattern</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Extends the pattern across 32 bits. </p>

</div>
</div>
<a class="anchor" id="a25ac8910472a5d9aaf463f1f7492f041"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EncoreBootImage::FillCommand::setPattern </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>pattern</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Extends the pattern across 32 bits. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_encore_boot_image_8h_source.html">EncoreBootImage.h</a></li>
<li>EncoreBootImage.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>elftosb</b></li><li class="navelem"><a class="el" href="classelftosb_1_1_encore_boot_image.html">EncoreBootImage</a></li><li class="navelem"><a class="el" href="classelftosb_1_1_encore_boot_image_1_1_fill_command.html">FillCommand</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:51 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
